package com.xjh.mange.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjh.mange.model.Picture;
import com.xjh.mange.vo.PictureDto;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @author 徐佳辉
 * @date 2020/12/20 16:38
 */
public interface PictureService extends IService<Picture> {
    String up(MultipartFile file, String picUrl) throws IOException;

    List<PictureDto> selectAllByUserIdOrName(Page<PictureDto> picsPage, int userId, String name);
}
